import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/page1'
    },
    {
        path: '/page1',
        name: 'page1',
        component: () => import('../views/page1.vue')
    },
    {
        path: '/page2',
        name: 'page2',
        component: () => import('../views/page2.vue')
    },
    {
        path: '/page3',
        name: 'page3',
        component: () => import('../views/page3.vue')
    },
    {
        path: '/pad-page1',
        name: 'pad-page1',
        component: () => import('../views/pad-page1.vue')
    },
    {
        path: '/pad-page2',
        name: 'pad-page2',
        component: () => import('../views/pad-page2.vue')
    },
    {
        path: '/pad-page3',
        name: 'pad-page3',
        component: () => import('../views/pad-page3.vue')
    },
    {
        path: '/pc-page1',
        name: 'pc-page1',
        component: () => import('../views/pc-page1.vue')
    },
    {
        path: '/pc-page2',
        name: 'pc-page2',
        component: () => import('../views/pc-page2.vue')
    },
    {
        path: '/pc-page3',
        name: 'pc-page3',
        component: () => import('../views/pc-page3.vue')
    },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
